<style>
    #khung { color:#CCC;}

</style>
<marquee align="middle" direction="up" height="400px" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" behavior="alternate" scrolldelay="10">
    <center>
        <?php
        $sql="select * from dm_sanpham order by idsp desc limit 0,5";
        $tv_1=mysql_query($sql);
        echo "<div class='cao_3_px'></div>";
        while($row=mysql_fetch_array($tv_1))
        {
            $link="?thamso=tt&idsp=$row[idsp]";
            echo '<div class="khung">';	// start .khung.
            echo "<div>";
            echo "<center>";
            echo "<font size='3' color='#0000FF'><a href='$link' id='khongmau'>".$row['tensp']."</a></font><br>";
            echo "<a href='$link'><img src='image/ha_sp/".$row['hinh']."' border='0' width='150px' height='150px'></a><br/>";
            $dinh_dang_gia=number_format($row['gia'],0,".",".");
            echo "<font size='2' color='#FF0000'><b>".$dinh_dang_gia." VND</b></font>";
            echo "<img src='image/chung/new.gif'>";
            echo "<form action='' method=''>";
            echo "<font size='3' color='#0000FF'>Còn: ".$row['soluong']."<br>" ."</font>";
            echo "<font size='2' color='#0000FF'>Số lượng : ";
            echo "<input style='width:50px' value='1' name='so_luong' onKeyPress='if((event.keyCode< 48)|| (event.keyCode > 57)) event.returnValue =false'></font>";
            echo "<br>";
            echo "<div style='overflow:hidden;width:5px;height:3px'></div>";
            echo "<input type='hidden' name='id_sp__nnn' value='$row[idsp]'>";
            echo "<input type='hidden' name='them_vao_gio' value='them_vao_gio'>";
            echo "<input type='image' src='image/chung/mua.gif' style='border:0px solid red'>";
            //echo "<input type='image' src='image/chung/mua.gif' style='border:0px solid red'>";
            echo "</form>";

            echo "</center>";
            echo "</div>";
            echo "</div>";
            echo "<div class='cao_3_px'></div>";
            echo "<hr color='#FF0000'>";
        }
        ?>
    </center>
</marquee>